<?php
/* @var $this SettingController */
/* @var $model Setting */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'setting-form',
        'enableAjaxValidation' => false,
    ));
    ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'positions'); ?>
        <?php echo $form->textField($model, 'positions', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'positions'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'positions_value'); ?>
        <?php echo $form->textField($model, 'positions_value'); ?>
        <?php echo $form->error($model, 'positions_value'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'positions_currency'); ?>
        <?php echo $form->textField($model, 'positions_currency', array('size' => 45, 'maxlength' => 45)); ?>
        <?php echo $form->error($model, 'positions_currency'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'positions_expire_day'); ?>
        <?php echo $form->textField($model, 'positions_expire_day', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'positions_expire_day'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'positions_outcome'); ?>
        <?php echo $form->textField($model, 'positions_outcome'); ?>
        <?php echo $form->error($model, 'positions_outcome'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'positions_outcome_unit'); ?>
        <?php echo $form->textField($model, 'positions_outcome_unit', array('size' => 45, 'maxlength' => 45)); ?>
        <?php echo $form->error($model, 'positions_outcome_unit'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'create_date'); ?>
        <?php echo $form->textField($model, 'create_date'); ?>
        <?php echo $form->error($model, 'create_date'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'create_by'); ?>
        <?php echo $form->textField($model, 'create_by', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'create_by'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'update_date'); ?>
        <?php echo $form->textField($model, 'update_date'); ?>
        <?php echo $form->error($model, 'update_date'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'update_by'); ?>
        <?php echo $form->textField($model, 'update_by', array('size' => 10, 'maxlength' => 10)); ?>
        <?php echo $form->error($model, 'update_by'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'status'); ?>
        <?php echo $form->textField($model, 'status', array('size' => 45, 'maxlength' => 45)); ?>
        <?php echo $form->error($model, 'status'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'site_name'); ?>
        <?php echo $form->textField($model, 'site_name', array('size' => 60, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'site_name'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'site_url'); ?>
        <?php echo $form->textField($model, 'site_url', array('size' => 60, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'site_url'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'started_on'); ?>
        <?php echo $form->textField($model, 'started_on'); ?>
        <?php echo $form->error($model, 'started_on'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'site_email'); ?>
        <?php echo $form->textField($model, 'site_email', array('size' => 60, 'maxlength' => 255)); ?>
        <?php echo $form->error($model, 'site_email'); ?>
    </div>

    <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->